package com.thread;

/**
 * @Author: 胡成
 * @Version: 0.0.1V
 * @Date: 2018/11/14
 * @Description: 类描述
 **/
public class MyThread extends Thread{
    private int count = 5;

    @Override
    public synchronized void run() {
        super.run();
        count--;
        System.out.println("由 "+this.currentThread().getName()+" 计算，count="+count);
    }
}
